<?php
  /**
   * LanguageControl
   *
   * The LanguageControl class :description
   *
   * @copyright Copyright (c) 2011, iJBLOKS Progect
   */
    class LanguagePannel extends iJBlock{
        
        /**
         *
         * Class Constructuctor
         * @access public
         */
        public function __construct() {
          
        }
        
        
        /**
         * execute
         *
         * Executes the block to generate the tokens
         *
         * @return array Array with the tokens of the block
         *
         * @access public
         */
         public function execute() {
          $iJLanguages = iJFactory::singleton('iJLanguages');
          $this->addToken('languages', $iJLanguages->getLanguages());
          $this->addToken('current', $iJLanguages->getLanguage());
          return parent::execute();
        }
        
    }
?>